const webpack = require('webpack');
let pkg = require("./package.json");
let license = `
 ${pkg.name} v${pkg.version}
 
 Copyright (c) 2016-2018, shu mai <ansiboy@163.com>
`;
module.exports = {
    entry: __dirname + "/out/client/index.js",//已多次提及的唯一入口文件
    output: {
        path: __dirname + "/dist/client",//打包后的文件存放的地方
        filename: "index.js",//打包后输出文件的文件名
        libraryTarget: 'amd'
    },
    mode: 'development',
    devtool: 'source-map',
    externals: ['maishu-chitu', 'maishu-chitu-service'],
    plugins: [
        new webpack.BannerPlugin(license),
    ],
}